package ospf

const (
	// OSPF 消息类型
	OSPFHello        = 1
	OSPFDatabaseDesc = 2
	OSPFLinkStateReq = 3
	OSPFLinkStateUpd = 4
	OSPFLinkStateAck = 5

	// OSPF 包长度常量
	OSPFv2HeaderLength   = 24
	HelloPacketMinLength = 20
)

// OSPF 常量定义
const (
	// OSPF Options 字段的标志位
	OSPFOptE  = 0x02 // External Routing
	OSPFOptMC = 0x04 // Multicast
	OSPFOptNP = 0x08 // NSSA
	OSPFOptEA = 0x10 // External Attributes
	OSPFOptDC = 0x20 // Demand Circuits
	OSPFOptO  = 0x40 // Opaque LSA
	OSPFOptDN = 0x80 // Down Bit

	// OSPF 认证类型
	OSPFNoAuth     = 0
	OSPFSimpleAuth = 1
	OSPFCryptoAuth = 2
)
